package com.twetec.cms.model.vo.website;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.List;

@ApiModel
public class HtmlTemplateTreeItemVO implements Serializable {

    @JsonSerialize(using = ToStringSerializer.class)

    @ApiModelProperty(value = "标题(文件夹或文件名称)", example = "index.html")
    private String title;

    @ApiModelProperty(value = "是否文件夹:1是,0不是", example = "0")
    private Integer isDir;

    @ApiModelProperty(value = "文件或文件夹后缀名", example = "html")
    private String ext;

    @ApiModelProperty(value = "相对路径", example = "/Chfek1-PzZGEbWhNAAAAAJqogLo980.txt")
    private String path;

    @ApiModelProperty(value = "childList")
    private List<HtmlTemplateTreeItemVO> childList;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getIsDir() {
        return isDir;
    }

    public void setIsDir(Integer isDir) {
        this.isDir = isDir;
    }

    public String getExt() {
        return ext;
    }

    public void setExt(String ext) {
        this.ext = ext;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public List<HtmlTemplateTreeItemVO> getChildList() {
        return childList;
    }

    public void setChildList(List<HtmlTemplateTreeItemVO> childList) {
        this.childList = childList;
    }

    @Override
    public String toString() {
        return "HtmlTemplateTreeItemVO{" +
                "title='" + title + '\'' +
                ", isDir=" + isDir +
                ", ext='" + ext + '\'' +
                ", path='" + path + '\'' +
                ", childList=" + childList +
                '}';
    }
}
